<?php
class contact_model extends CI_Model
{
	function __construct(){
		parent::__construct();
	}
	function getContact()
	{
		$query = $this->db->get('contact');
		return $query->row();
	}
	function update($contact)
	{
		$this->db->where('id',$contact['id']);
		$this->db->update('contact',$contact);
	}
}
